Skip to content

feat(ui,core,daemon,cli): attention view and stalled devices - #295

Merged
V3RON merged 3 commits into
task/274from
task/275
Oct 3, 2026
Merged

V3RON merged 3 commits into
task/274from
task/275

Conversation

@V3RON

@V3RON V3RON commented Oct 2, 2026

Copy link
Copy Markdown
Contributor

Closes #275

The console gets its Attention view. It lists disconnected, incompatible and drained workers, quarantined and stalled devices, and workers over their RAM budget. Each item links to its worker. The nav shows the count beside Attention on every page. Both read GET /v1/workers, like the workers views.

A stalled device needs a new field. The doctor's stall test is now isStalledTransition in src/core/doctor.ts. The doctor's finding and the dispatcher's device decoration both call it. The dispatcher gets the drivers and the operation claims, and sets stalled: true on status.get, list.get and worker view devices. simlock status adds a stalled marker.

Docs: CONSOLE.md (the Attention view), HTTP-API.md and CLI.md (stalled), CONFIGURATION.md (what the stall threshold now drives).

Done when

  • Each condition appears in the Attention view on a gateway, and the single-host ones on a single host: unit tests for each condition, plus browser tests on a gateway (drained, disconnected, incompatible, quarantined, stalled) and on a single host (quarantined, stalled, over RAM budget).
  • Each appears within a second and leaves when it clears: the browser lane checks drain, undrain and disconnect within 1 s, and a unit test checks each item leaves. Not met for a stall on a gateway. A stall starts with no event, so the gateway sees it on its next 30 s refresh of that worker. CONSOLE.md and HTTP-API.md say so. spec needs: a gateway refresh trigger for stalls, or a looser bound.
  • simlock doctor reports the same stalls as before: the doctor's stalled-transition finding is unchanged compares whole findings at each threshold. The existing doctor stall tests pass unchanged.
  • Browser lane passes in Chromium, Firefox and WebKit: pnpm test:console, 117 passed.

pnpm test passes except the known instance-identity race on macOS. pnpm test:e2e passes.

Review

Spec review: 2 findings, 0 fixed. Code review: 8 findings over two rounds, 7 fixed.

Rejected:

  • A stall on a gateway does not show within a second. — The spec makes a stall a flag computed when the worker is read, with no event, so a gateway sees it only on its next 30 s refresh. Meeting this needs a spec change (see Done when).
  • CONFIGURATION.md is not in the task's list of docs. — Its stall-threshold row said the threshold drives only doctor. That is now false, and architecture rule 13 says to fix it in the same change.
  • The count makes every page poll /v1/workers, and on a single host worker.list reads the driver catalog on every call. — The spec puts the count on every page. The catalog read on each call is in worker.list (A worker answers the fleet operations as a fleet of one #270), and the Workers view already polls it every second. ADR 0013 expects these reads to answer from memory, so the fix belongs in worker.list.

Written by an agent.

@V3RON
V3RON changed the base branch from task/272 to task/274 October 2, 2026 22:14
@V3RON
V3RON added this pull request to stack #292 October 2, 2026 22:14
@V3RON
V3RON merged commit 780bf3d into main Oct 3, 2026
33 of 36 checks passed
@V3RON
V3RON deleted the task/275 branch November 6, 2026 07:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Console: attention view and stalled devices

1 participant